/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.uccart_project.model;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Jason
 */
@Entity
@Table(name = "aranceles")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Aranceles.findAll", query = "SELECT a FROM Aranceles a"),
    @NamedQuery(name = "Aranceles.findByArancelesId", query = "SELECT a FROM Aranceles a WHERE a.arancelesId = :arancelesId"),
    @NamedQuery(name = "Aranceles.findByArancelesDescripcion", query = "SELECT a FROM Aranceles a WHERE a.arancelesDescripcion = :arancelesDescripcion"),
    @NamedQuery(name = "Aranceles.findByArancelesPrecio", query = "SELECT a FROM Aranceles a WHERE a.arancelesPrecio = :arancelesPrecio"),
    @NamedQuery(name = "Aranceles.findByArancelesTipo", query = "SELECT a FROM Aranceles a WHERE a.arancelesTipo = :arancelesTipo")})
public class Aranceles implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "aranceles_id")
    private Integer arancelesId;
    @Basic(optional = false)
    @Column(name = "aranceles_descripcion")
    private String arancelesDescripcion;
    @Basic(optional = false)
    @Column(name = "aranceles_precio")
    private int arancelesPrecio;
    @Basic(optional = false)
    @Column(name = "aranceles_tipo")
    private String arancelesTipo;

    public Aranceles() {
    }

    public Aranceles(Integer arancelesId) {
        this.arancelesId = arancelesId;
    }

    public Aranceles(Integer arancelesId, String arancelesDescripcion, int arancelesPrecio, String arancelesTipo) {
        this.arancelesId = arancelesId;
        this.arancelesDescripcion = arancelesDescripcion;
        this.arancelesPrecio = arancelesPrecio;
        this.arancelesTipo = arancelesTipo;
    }

    public Integer getArancelesId() {
        return arancelesId;
    }

    public void setArancelesId(Integer arancelesId) {
        this.arancelesId = arancelesId;
    }

    public String getArancelesDescripcion() {
        return arancelesDescripcion;
    }

    public void setArancelesDescripcion(String arancelesDescripcion) {
        this.arancelesDescripcion = arancelesDescripcion;
    }

    public int getArancelesPrecio() {
        return arancelesPrecio;
    }

    public void setArancelesPrecio(int arancelesPrecio) {
        this.arancelesPrecio = arancelesPrecio;
    }

    public String getArancelesTipo() {
        return arancelesTipo;
    }

    public void setArancelesTipo(String arancelesTipo) {
        this.arancelesTipo = arancelesTipo;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (arancelesId != null ? arancelesId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Aranceles)) {
            return false;
        }
        Aranceles other = (Aranceles) object;
        if ((this.arancelesId == null && other.arancelesId != null) || (this.arancelesId != null && !this.arancelesId.equals(other.arancelesId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.uccart_project.model.Aranceles[ arancelesId=" + arancelesId + " ]";
    }
    
}
